package ute.mvc.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import ute.mvc.model.Assignment_Student;
@Repository("assignment_StudentDAO")
public class Assignment_StudentDAOImpl implements Assignment_StudentDAO{
	@Autowired
	SessionFactory sessionFactory;
	public void addAssignment_Student(Assignment_Student assignment_student) {
		sessionFactory.getCurrentSession().save(assignment_student);
	}

	public void updateAssignment_Student(Assignment_Student assignment_student) {
		sessionFactory.getCurrentSession().merge(assignment_student);
	}

	public void deleteAssignment_Student(Assignment_Student assignment_student) {
		sessionFactory.getCurrentSession().delete(assignment_student);
	}

}
